package com.cuitrip.business.order.detail.ui.model;

import java.io.Serializable;

/**
 * 费用module
 * Created by ak
 */
public class PricePartRenderData implements Serializable {

    protected String paidFee;//支付费用
    protected String serviceFee;//行程费用
    protected String transactionFee;//手续费
    protected String platformFee;//平台服务费
    protected String coupon;//优惠费用

    private String refundFee;//退回费用
    private String cancellationFee;//取消费用

    private PriceMode priceMode;//是否显示详细费用条目

    private String priceType;

    private String currency;

    private String serviceFeeIsCharged;
    private String tranFeeIsCharged;

    /**
     * 显示价格的样式
     */
    public enum PriceMode {
        //简便样式
        Simple,
        //详细样式
        Detail,
        //退款样式
        Refund;
    }


    public PricePartRenderData(String paidFee, String serviceFee,
                               String transactionFee, String platformFee, String coupon,
                               String refundFee, String cancellationFee,
                               String currency, String priceType,String serviceFeeIsCharged,String tranFeeIsCharged) {
        this.paidFee = paidFee;
        this.serviceFee = serviceFee;
        this.transactionFee = transactionFee;
        this.platformFee = platformFee;
        this.coupon = coupon;
        this.refundFee = refundFee;
        this.cancellationFee = cancellationFee;
        this.currency = currency;
        this.priceType = priceType;
        this.serviceFeeIsCharged=serviceFeeIsCharged;
        this.tranFeeIsCharged=tranFeeIsCharged;
    }

    public String getPaidFee() {
        return paidFee;
    }

    public void setPaidFee(String paidFee) {
        this.paidFee = paidFee;
    }


    public String getTransactionFee() {
        return transactionFee;
    }

    public void setTransactionFee(String transactionFee) {
        this.transactionFee = transactionFee;
    }

    public String getServiceFee() {
        return serviceFee;
    }

    public void setServiceFee(String serviceFee) {
        this.serviceFee = serviceFee;
    }

    public String getCoupon() {
        return coupon;
    }

    public void setCoupon(String coupon) {
        this.coupon = coupon;
    }

    public PriceMode getPriceMode() {
        return priceMode;
    }

    public void setPriceMode(PriceMode priceMode) {
        this.priceMode = priceMode;
    }

    public String getPlatformFee() {
        return platformFee;
    }

    public void setPlatformFee(String platformFee) {
        this.platformFee = platformFee;
    }

    public String getRefundFee() {
        return refundFee;
    }

    public void setRefundFee(String refundFee) {
        this.refundFee = refundFee;
    }

    public String getCancellationFee() {
        return cancellationFee;
    }

    public void setCancellationFee(String cancellationFee) {
        this.cancellationFee = cancellationFee;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getPriceType() {
        return priceType;
    }

    public String getServiceFeeIsCharged() {
        return serviceFeeIsCharged;
    }

    public void setServiceFeeIsCharged(String serviceFeeIsCharged) {
        this.serviceFeeIsCharged = serviceFeeIsCharged;
    }

    public String getTranFeeIsCharged() {
        return tranFeeIsCharged;
    }

    public void setTranFeeIsCharged(String tranFeeIsCharged) {
        this.tranFeeIsCharged = tranFeeIsCharged;
    }

    public static PricePartRenderData getSampleInstance() {
        /*String paidFee, String serviceFee,
                String transactionFee, String platformFee, String coupon,
                String refundFee, String cancellationFee,
                String currency, String priceType*/


        return new PricePartRenderData("152.27", "150.00", "1.27", "1.00", "0.00", "20.00", "80.27",
                "USD", "1","0","1"
        );
    }
}
